package com.java.simple.smallspring.aop;

/**
 * @author zhoujunlin
 * @date 2022年09月10日 15:54
 * @desc Filter that restricts matching of a point or
 * introduction to a given set of target classes
 * 用于切点找到给定的接口和目标类
 */
public interface ClassFilter {

    ClassFilter TRUE = TrueClassFilter.TRUE;

    /**
     * Should the pointcut apply to the given interface or class?
     *
     * @param clazz
     * @return
     */
    boolean matches(Class<?> clazz);

}
